package com.cysd.ewmksbs.ui.fragment;

import android.animation.AnimatorSet;
import android.content.Context;
import android.widget.Button;
import android.widget.TextView;

import androidx.annotation.NonNull;


import com.cysd.ewmksbs.ksb_ui.dialog.BaseDialog;
import com.csylhl.ewmksb.R;


public class Ksb_ScanErrorDialog extends BaseDialog {
    private Button button_danhao;

    private TextView tv_danhao;


    public Ksb_ScanErrorDialog(@NonNull Context context) {
        super(context);

    }

    @Override
    protected float setWidthScale() {
        return 0.8f;
    }

    @Override
    protected AnimatorSet setEnterAnim() {
        return null;
    }

    @Override
    protected AnimatorSet setExitAnim() {
        return null;
    }

    @Override
    protected void init() {
        findViewById(R.id.tv_sure).setOnClickListener(v -> dismiss());

        findViewById(R.id.iv_close).setOnClickListener(v -> dismiss());
    }

    @Override
    protected int getContentViewId() {
        return R.layout.dialog_scan_erro;
    }

    public void setTv_danhao(String danhao){
        tv_danhao.setText(danhao);
    }
}
